//
//  FBDDownload.h
//  AVPlayerTest
//
//  Created by feng on 16/9/20.
//  Copyright © 2016年 冯宝东. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FBD_Header.h"
//typedef void(^downloadCurrentBlock)(NSString*url,float progress);

@interface FBDDownload : NSObject
@property (nonatomic,copy)downloadCurrentBlock currentDownBlock; //当前的下载block回调
@property (nonatomic,copy)downloadCompleteBlock completeDownBlock; //完成当前下载的block回调
//开始下载
-(instancetype)initWithDownLoadURL:(NSString*)url;
//关闭正在下载的链接
-(void)cancelIndexDownLoad;
//设置当前的进度回调
-(void)fbdDownloadConfigeCurrentDownloadBlock:(downloadCurrentBlock)downBlock;
//设置当前下载完成的回调
-(void)fbdDownloadConfigeCompleteDownloadBlock:(downloadCompleteBlock)downBlock;


@end
